﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StoreWeb.system.order
{
    public partial class comment : System.Web.UI.Page
    {
        Maticsoft.BLL.comment cmtbll = new Maticsoft.BLL.comment();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hidid.Value = Request["id"];
                //如果是查看
                if (Request["action"] == "get")
                {
                    Maticsoft.Model.comment cmt = cmtbll.GetModelList("ordercode='"+hidid.Value+"'").First();
                    ddlistcomment.SelectedValue = cmt.productcmt;
                    ddlistfuwucomment.SelectedValue = cmt.servicecmt;
                    tatsjy.Value = cmt.advice;
                    tabz.Value = cmt.note;

                    tatsjy.Disabled = true;
                    tabz.Disabled = true;
                    ddlistcomment.Enabled = false;
                    ddlistfuwucomment.Enabled = false;
                    btnok.Visible = false;
                }
            }
        }
    }
}